package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class ReportDictTypes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public final static ReportDictTypes SQL = new ReportDictTypes(0,null);
    public final static ReportDictTypes SQLTree = new ReportDictTypes(1,null);
    public final static ReportDictTypes Custom = new ReportDictTypes(2,"customized,userdefine");
    public final static ReportDictTypes External = new ReportDictTypes(3,"ext");
    protected ReportDictTypes(int nId,String strAlias)
    {
        super(nId,null,strAlias);
    }

    public int hashCode()
    {
        return super.hashCode();
    }

    public static ReportDictTypes fromName(String str)
    {
        return(ReportDictTypes) IntegerPair.findConstant(ReportDictTypes.class,str,SQL);
    }
}
